﻿namespace ResourceBasedAuthApp.Data
{
    public static class UserRepository
    {
        public static List<UserEntity> Users = new List<UserEntity>()
        {
            new UserEntity(){ DateOfBirth=DateTime.Now.AddYears(-33), Id=1, Pwd="1", UserCode="admin",UserName="管理员"},
            new UserEntity(){ DateOfBirth=DateTime.Now.AddYears(-13), Id=2, Pwd="1", UserCode="simaqian",UserName="司马迁"},
            new UserEntity(){ DateOfBirth=DateTime.Now.AddYears(-23), Id=3, Pwd="1", UserCode="nash",UserName="纳什"},
            new UserEntity(){ DateOfBirth=DateTime.Now.AddYears(-54), Id=4, Pwd="1", UserCode="sushi",UserName="苏轼"},
            new UserEntity(){ DateOfBirth=DateTime.Now.AddYears(-12), Id=5, Pwd="1", UserCode="jiayi",UserName="贾谊"},
      
        };
    }
    public class UserEntity:BaseEntity
    {
        public string UserCode { get; set; }
        public string Pwd { get; set; }
        public DateTime DateOfBirth { get; set; }
        public string UserName { get; set; }
    }
}
